package com.platform.uaa.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * Description:
 *
 * @author zyk
 */
@ConfigurationProperties(prefix = "client.info")
public class ClientsProperties {

    private List<Client> clients;

    public List<Client> getClients() {
        return clients;
    }

    public void setClients(List<Client> clients) {
        this.clients = clients;
    }

    public static class Client {
        private String clientId;
        private String resourceIds;
        private Boolean secretRequire;
        private String clientSecret;
        private Boolean scopeRequire;
        private String scope;
        private String authorizedGrantTypes;
        private String webServerRedirectUri;
        private String authorities;
        private Integer accessTokenValidity;
        private Integer refreshTokenValidity;

        public String getClientId() {
            return clientId;
        }

        public void setClientId(String clientId) {
            this.clientId = clientId;
        }

        public String getResourceIds() {
            return resourceIds;
        }

        public void setResourceIds(String resourceIds) {
            this.resourceIds = resourceIds;
        }

        public Boolean getSecretRequire() {
            return secretRequire;
        }

        public void setSecretRequire(Boolean secretRequire) {
            this.secretRequire = secretRequire;
        }

        public String getClientSecret() {
            return clientSecret;
        }

        public void setClientSecret(String clientSecret) {
            this.clientSecret = clientSecret;
        }

        public Boolean getScopeRequire() {
            return scopeRequire;
        }

        public void setScopeRequire(Boolean scopeRequire) {
            this.scopeRequire = scopeRequire;
        }

        public String getScope() {
            return scope;
        }

        public void setScope(String scope) {
            this.scope = scope;
        }

        public String getAuthorizedGrantTypes() {
            return authorizedGrantTypes;
        }

        public void setAuthorizedGrantTypes(String authorizedGrantTypes) {
            this.authorizedGrantTypes = authorizedGrantTypes;
        }

        public String getWebServerRedirectUri() {
            return webServerRedirectUri;
        }

        public void setWebServerRedirectUri(String webServerRedirectUri) {
            this.webServerRedirectUri = webServerRedirectUri;
        }

        public String getAuthorities() {
            return authorities;
        }

        public void setAuthorities(String authorities) {
            this.authorities = authorities;
        }

        public Integer getAccessTokenValidity() {
            return accessTokenValidity;
        }

        public void setAccessTokenValidity(Integer accessTokenValidity) {
            this.accessTokenValidity = accessTokenValidity;
        }

        public Integer getRefreshTokenValidity() {
            return refreshTokenValidity;
        }

        public void setRefreshTokenValidity(Integer refreshTokenValidity) {
            this.refreshTokenValidity = refreshTokenValidity;
        }
    }
}
